/*
** config_server.c for  in /home/faye_m//zappy-2011/new_server/src
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Fri Jul  8 22:22:01 2011 mouhamed faye
** Last update Sun Jul 10 21:11:59 2011 mouhamed faye
*/
#include <stdio.h>
#include "types.h"
#include "parser.h"

void	config_server(T_env *e, t_server_params *p)
{
  int i;

  i = 0;
  printf ("\n\tListening on port %d \n\n", p->port);
  printf ("Configuration  : Max(%d)  WorldX(%d) WorlzdY(%d) T(%d)\n\n",
	  p->nb_clients, p->x, p->y, p->time);
   printf("Generation Map  done ......\n\n");
    while (p->team[i] !=  NULL)
      {
        e->list_team = add_team(e->list_team, p->team[i]);
       i++;
      }
   e->list_team = add_team(e->list_team, p->team[i - i]);
   display_team(e->list_team, p->nb_clients, e);
}
